var mySwiper = new Swiper('.tabs', {
    slidesPerView: 4,
});
var mySwiper = new Swiper('.lunbo', {
    autoplay:1000,
});
var tabsSwiper = new Swiper('#tabs-container', {
    speed: 500,
    initialSlide: 0,
    onSlideChangeStart: function (tabsSwiper) {
        var index = tabsSwiper.activeIndex;
        $(".tabs .active").removeClass('active');
        $(".tabs .swiper-slide a").eq(index).addClass('active');
        mySwiper.slideTo(index);
    }
});
$(".tabs .swiper-slide").on('touchstart click', function (e) {
    e.preventDefault();
    var $this = $(this);
    $(".tabs .active").removeClass('active');
        $(this).find('a').addClass('active');
        tabsSwiper.slideTo($(this).index());
        mySwiper.slideTo($(this).index());
});